import request from '../utils/request'
//登录
export function login(data) {
  return request.post('/app/user/codeLogin', data, { showLoading: false })
}
//获取用户信息
export function getUserInfo(data) {
  return request.get('/app/zxUser/userInfo')
}
//发送短信
export function sendCode(data) {
  return request.get('/app/user/sendLoginCode', data)
}
//退出
export function logout(data) {
  return request.post('/app/user/logout')
}

// 赛事详情
export function getEventsDetail(data) {
  return request.get('/rmc/getEvent', data)
}

// 实时排名
export function ranking(data) {
  return request.get('/app/participant/events/ranking', data)
}

//获取选手比赛信息
export function getGameInfo(data) {
  return request.get('/rmc/newGameInfo', data)
}
//获取姿态稳定性折线图
export function getAttitudeInfo(data) {
  return request.get('/rmc/getNewAttitudeInfo', data)
}
//获取姿态稳定角速度性折线图
export function getAngulareInfo(data) {
  return request.get('/rmc/getNewAngulareInfo', data)
}
//获取速度分析折线图
export function getSpeedInfo(data) {
  return request.get('/rmc/getNewSpeedInfo', data)
}
//获取大屏选手信息
export function getUser(data) {
  return request.get('/rmc/getUser', data)
}

//获取大屏统计人数
export function getGamePeople(data) {
  return request.get('/rmc/getGamePeople', data)
}
//获取大屏地区排行榜

export function getProvinceRank(data) {
  return request.get('/rmc/getProvinceRank', data)
}
//获取实时数据
export function getRmcInfo(data) {
  return request.get('/app/zxUser/rank', data)
}
//艇圈
export function circleList(data) {
  return request.get('/app/circle/list', data)
}
//商品列表
export function getShopData(data) {
  return request.get('/app/goods/list', data)
}


